import 'package:flutter/cupertino.dart';
import 'colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

/// @class : Styles
/// @name : jhf
/// @description :样式文件
class Styles {
  ///---------------------------中文居中-------------------------------
  static StrutStyle centerStrutStyle =
      StrutStyle(height: 1.1, forceStrutHeight: true);

  ///---------------------------黑绿色字体区域-------------------------------
  static TextStyle style_1A2F51_14 =
      TextStyle(color: ColorStyle.color_1A2F51, fontSize: 14.sp);
  static TextStyle style_1A2F51_16 =
      TextStyle(color: ColorStyle.color_1A2F51, fontSize: 16.sp);
  static TextStyle style_1A2F51_18 =
      TextStyle(color: ColorStyle.color_1A2F51, fontSize: 18.sp);

  ///---------------------------淡灰色字体区域-------------------------------
  static TextStyle style_B8C0D4_11 =
      TextStyle(color: ColorStyle.color_B8C0D4, fontSize: 11.sp);
  static TextStyle style_B8C0D4_13 =
      TextStyle(color: ColorStyle.color_B8C0D4, fontSize: 13.sp);
  static TextStyle style_B8C0D4_14 =
      TextStyle(color: ColorStyle.color_B8C0D4, fontSize: 14.sp);
  static TextStyle style_B8C0D4_16 =
      TextStyle(color: ColorStyle.color_B8C0D4, fontSize: 16.sp);
  static TextStyle style_B8C0D4_18 =
      TextStyle(color: ColorStyle.color_B8C0D4, fontSize: 18.sp);

  static TextStyle style_placeholder =
      TextStyle(color: ColorStyle.color_999999, fontSize: 16.sp);
  static TextStyle style_textTitle =
      TextStyle(color: ColorStyle.color_333333, fontSize: 16.sp);
  static TextStyle style_messgatHUD =
      TextStyle(color: ColorStyle.color_999999, fontSize: 10.sp);

  ///---------------------------浅灰色字体区域-------------------------------
  static TextStyle style_9F9EA6_11 =
      TextStyle(color: Color(0xff9F9EA6), fontSize: 11.sp, height: 1.1);
  static TextStyle style_9F9EA6_12 =
      TextStyle(color: Color(0xff9F9EA6), fontSize: 12.sp, height: 1.1);
  static TextStyle style_9F9EA6_13 =
      TextStyle(color: Color(0xff9F9EA6), fontSize: 13.sp, height: 1.1);
  static TextStyle style_9F9EA6_14 =
      TextStyle(color: Color(0xff9F9EA6), fontSize: 14.sp);
  static TextStyle style_9F9EA6_15 =
      TextStyle(color: Color(0xff9F9EA6), fontSize: 15.sp);
  static TextStyle style_9F9EA6_16 =
      TextStyle(color: Color(0xff9F9EA6), fontSize: 16.sp);
  static TextStyle style_616169_11 =
      TextStyle(color: Color(0xff616169), fontSize: 11.sp, height: 1.1);
  static TextStyle style_616169_17 = TextStyle(
      color: Color(0xff616169),
      fontSize: 17.sp,
      height: 1.1,
      fontWeight: FontWeight.w700);
  static TextStyle style_6A6969_14 =
      TextStyle(color: ColorStyle.color_6A6969, fontSize: 14.sp);
  static TextStyle style_6A6969_16 =
      TextStyle(color: ColorStyle.color_6A6969, fontSize: 16.sp);

  ///---------------------------白色字体区域-------------------------------
  static TextStyle style_white_10 =
      TextStyle(color: Colors.white, fontSize: 10.sp, height: 1.1);
  static TextStyle style_white_11 =
      TextStyle(color: Colors.white, fontSize: 11.sp);
  static TextStyle style_white_12 =
      TextStyle(color: Colors.white, fontSize: 12.sp);
  static TextStyle style_white_14 =
      TextStyle(color: Colors.white, fontSize: 14.sp);
  static TextStyle style_white_15 =
  TextStyle(color: Colors.white, fontSize: 15.sp);
  static TextStyle style_white_15_bold = TextStyle(
      color: Colors.white, fontSize: 15.sp, fontWeight: FontWeight.w500);
  static TextStyle style_white_14_bold = TextStyle(
      color: Colors.white, fontSize: 14.sp, fontWeight: FontWeight.w500);
  static TextStyle style_white_16 =
      TextStyle(color: Colors.white, fontSize: 16.sp);
  static TextStyle style_white38_16 =
      TextStyle(color: Colors.white38, fontSize: 16.sp);
  static TextStyle style_white_18 =
      TextStyle(color: Colors.white, fontSize: 18.sp);
  static TextStyle style_white_18_bold =
  TextStyle(color: Colors.white, fontSize: 18.sp,fontWeight: FontWeight.w700);
  static TextStyle style_white_16_bold = TextStyle(
      color: Colors.white, fontSize: 16.sp, fontWeight: FontWeight.w700);
  static TextStyle style_white24_18 =
      TextStyle(color: Colors.white24, fontSize: 18.sp);
  static TextStyle style_white_36 =
      TextStyle(color: Colors.white, fontSize: 36.sp);

  ///---------------------------黑色字体区域-------------------------------
  static TextStyle style_black_18_bold = TextStyle(
      color: Colors.black, fontSize: 18.sp, fontWeight: FontWeight.w700);
  static TextStyle style_black_18_bold500 = TextStyle(
      color: Colors.black, fontSize: 18.sp, fontWeight: FontWeight.w500);
  static TextStyle style_black_16_bold = TextStyle(
      color: Colors.black, fontSize: 16.sp, fontWeight: FontWeight.w700);
  static TextStyle style_black_16_bold500 = TextStyle(
      color: Colors.black, fontSize: 16.sp, fontWeight: FontWeight.w500);
  static TextStyle style_black_14 =
      TextStyle(color: Colors.black, fontSize: 14.sp);
  static TextStyle style_black_14_bold = TextStyle(
      color: Colors.black, fontSize: 14.sp, fontWeight: FontWeight.w700);
  static TextStyle style_black_16 =
      TextStyle(color: Colors.black, fontSize: 16.sp);
  static TextStyle style_black_16_w700 = TextStyle(
      color: Colors.black, fontSize: 16.sp, fontWeight: FontWeight.w700);
  static TextStyle style_black_36 =
      TextStyle(color: Colors.black, fontSize: 36.sp);
  static TextStyle style_black_30 =
      TextStyle(color: Colors.black, fontSize: 30.sp);
  static TextStyle style_black_12 =
      TextStyle(color: Colors.black, fontSize: 12.sp);

  static TextStyle style_black_12_bold = TextStyle(color: Colors.black, fontSize: 12.sp, fontWeight: FontWeight.w700);

  static TextStyle style_black_11 =
      TextStyle(color: Colors.black, fontSize: 11.sp);
  static TextStyle style_black_13 =
      TextStyle(color: Colors.black, fontSize: 13.sp);
  static TextStyle style_black_15 =
      TextStyle(color: Colors.black, fontSize: 15.sp);

  static TextStyle style_black_15_bold = TextStyle(
    color: Colors.black,
    fontSize: 15.sp,
    fontWeight: FontWeight.w700,
  );
  static TextStyle style_24CF5F_14 =
      TextStyle(color: ColorStyle.color_24CF5F, fontSize: 14.sp);

  ///---------------------------黄色、淡黄色字体区域-------------------------------
  static TextStyle style_FE8C28_24_bold = TextStyle(
      color: ColorStyle.color_FE8C28,
      fontSize: 24.sp,
      fontWeight: FontWeight.w700);

  static TextStyle style_FFAE2E_14 =
      TextStyle(color: ColorStyle.color_FFAE2E, fontSize: 14.sp);

  static TextStyle style_FFAE2E_16 =
      TextStyle(color: ColorStyle.color_FFAE2E, fontSize: 16.sp);

  static TextStyle style_FE8C28_11 =
      TextStyle(color: ColorStyle.color_FE8C28, fontSize: 11.sp, height: 1.1);

  ///---------------------------红色字体区域-------------------------------
  static TextStyle style_red_10 =
      TextStyle(color: ColorStyle.color_home, fontSize: 10.sp);
  static TextStyle style_red_11 =
      TextStyle(color: ColorStyle.color_home, fontSize: 11.sp);
  static TextStyle style_red_12 =
      TextStyle(color: ColorStyle.color_home, fontSize: 12.sp);
  static TextStyle style_red_12_bold =
  TextStyle(color: ColorStyle.color_home, fontSize: 12.sp,);
  static TextStyle style_red_13 =
      TextStyle(color: ColorStyle.color_home, fontSize: 13.sp);
  static TextStyle style_red_14 =
      TextStyle(color: ColorStyle.color_home, fontSize: 14.sp);
  static TextStyle style_red_14_bold = TextStyle(
      color: ColorStyle.color_home,
      fontSize: 14.sp,
      fontWeight: FontWeight.w700);
  static TextStyle style_red_15 = TextStyle(
      color: ColorStyle.color_home,
      fontSize: 15.sp,
      fontWeight: FontWeight.w500);
  static TextStyle style_red_15_bold = TextStyle(
      color: ColorStyle.color_home,
      fontSize: 15.sp,
      fontWeight: FontWeight.w700);
  static TextStyle style_red_16 =
      TextStyle(color: ColorStyle.color_home, fontSize: 16.sp);
  static TextStyle style_red_16_blod = TextStyle(
      color: ColorStyle.color_home,
      fontSize: 16.sp,
      fontWeight: FontWeight.w700);
  static TextStyle style_red_17 =
      TextStyle(color: ColorStyle.color_home, fontSize: 17.sp);

  static TextStyle style_red_18 =
      TextStyle(color: ColorStyle.color_home, fontSize: 18.sp);
  static TextStyle style_red_18_bold =
  TextStyle(color: ColorStyle.color_home, fontSize: 18.sp, fontWeight: FontWeight.w700);
  static TextStyle style_FFC8A07_13 = TextStyle(
      color: ColorStyle.color_home,
      fontSize: 13.sp,
      fontWeight: FontWeight.w500);

  // ---------------------蓝色字体 -------

  static TextStyle style_blue_14 =
      TextStyle(color: Colors.blue, fontSize: 14.sp);
  static TextStyle style_blue_15 =
      TextStyle(color: Colors.blue, fontSize: 15.sp);
  static TextStyle style_blue_16 =
      TextStyle(color: Colors.blue, fontSize: 16.sp);
  static TextStyle style_blue_17 =
      TextStyle(color: Colors.blue, fontSize: 17.sp);
  static TextStyle style_blue_18 =
      TextStyle(color: Colors.blue, fontSize: 18.sp);

  // ---------------------绿色字体 -------

  static TextStyle style_green_14 =
      TextStyle(color: Colors.green, fontSize: 14.sp);
  static TextStyle style_green_15 =
      TextStyle(color: Colors.green, fontSize: 15.sp);
  static TextStyle style_green_16 =
      TextStyle(color: Colors.green, fontSize: 16.sp);
  static TextStyle style_green_17 =
      TextStyle(color: Colors.green, fontSize: 17.sp);
  static TextStyle style_green_18 =
      TextStyle(color: Colors.green, fontSize: 18.sp);
}

/// 间隔
class Box {
  /// 水平间隔
  static Widget hBox3 = const SizedBox(width: 3);
  static Widget hBox4 = const SizedBox(width: 4);

  static Widget hBox5 = const SizedBox(width: 5);
  static Widget hBox6 = const SizedBox(width: 6);
  static Widget hBox8 = const SizedBox(width: 8);

  static Widget hBox10 = const SizedBox(width: 10);
  static Widget hBox12 = const SizedBox(width: 12);
  static Widget hBox15 = const SizedBox(width: 15);
  static Widget hBox20 = const SizedBox(width: 20);
  static Widget hBox30 = const SizedBox(width: 30);
  static Widget hBox35 = const SizedBox(width: 35);
  static Widget hBox45 = const SizedBox(width: 45);

  /// 垂直间隔
  static Widget vBox3 = const SizedBox(height: 3);
  static Widget vBox4 = const SizedBox(height: 4);
  static Widget vBox5 = const SizedBox(height: 5);
  static Widget vBox8 = const SizedBox(height: 8);

  static Widget vBox10 = const SizedBox(height: 10);
  static Widget vBox12 = const SizedBox(height: 12);
  static Widget vBox15 = const SizedBox(height: 15);
  static Widget vBox20 = const SizedBox(height: 20);
  static Widget vBox25 = const SizedBox(height: 25);
  static Widget vBox30 = const SizedBox(height: 30);
  static Widget vBox50 = const SizedBox(height: 50);

  static Widget getHGap(double w) {
    return SizedBox(width: w);
  }

  static Widget getVGap(double h) {
    return SizedBox(height: h);
  }
}

class DividerStyle {

  static Widget line1 = const Divider(
    height: 5,
    thickness: 1,
    // indent: 26,
    // endIndent: 26,
    color: ColorStyle.colorShadow,
  );

  ///分割线 0.5 - 20边距
  static Widget divider1HalfPadding26 = const Divider(
    height: 5,
    thickness: 1,
    // indent: 26,
    // endIndent: 26,
    color: ColorStyle.color_E5E5E5,
  );
  static Widget divider1Height8 = const Divider(
    height: 5,
    thickness: 8,
    // indent: 26,
    // endIndent: 26,
    color: ColorStyle.color_E5E5E5,
  );
  static Widget divider1HLine = const Divider(
    height: 10,
    thickness: 1,
    color: ColorStyle.colorShadow,
  );

  ///分割线 0.5 - 无边距
  static Widget divider1Half = const Divider(
    height: 0.5,
    thickness: 0.5,
    color: ColorStyle.colorShadow,
  );

  ///分割线 20 - 无边距
  static Widget divider20Half = const Divider(
    height: 20,
    thickness: 20,
    color: ColorStyle.color_E5E5E7,
  );

  ///分割线 20 - 无边距
  static Widget divider2Half = const Divider(
    height: 20,
    thickness: 1,
    color: Colors.red,
  );

  ///分割线 20 - 无边距
  static Widget dividerGrayHalf = const Divider(
    height: 20,
    thickness: 1,
    color: ColorStyle.color_B8C0D4,
  );
}
